<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="{TPL}css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<link type="text/css" id="styleName" rel="stylesheet" href="{TPL}css/blue/color.css"/ >
<link type="text/css" rel="stylesheet" href="{TPL}css/ShoppingRecords.css">
<link type="text/css" rel="stylesheet" href="{TPL}css/jquery.datepick.css"> 
    <script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>

    <script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>

    <script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>

    <script src="{TPL}js/Gobal.js" type="text/javascript"> </script>

    <script type="text/javascript" src="{TPL}js/wdggcGobal.js"></script>    

<script>

function show(id){
$("#"+id).fadeIn();
}

function hidden(id){
$("#"+id).fadeOut();
}

function pay_j(id,yf){
if(confirm("{lang j_m_zxwl_s_12} S$"+yf+" ?")){

 $.ajax({
     type: "get",
     url: "/j_pay.php",
     data: "ac=pay&id="+id,
     success: function(json){
	 
     // alert(json); 
	  if(json==2){alert("{lang j_m_zxwl_s_13}");location.href="./m.php";return false;}
	  if(json==4){alert("{lang j_m_zxwl_s_14}");return false;}
	  if(json==5){alert("{lang j_m_zxwl_s_15}");location.href="./m.php?name=rmbaccount&action=pay";return false;}
	  if(json==6){alert("{lang j_m_zxwl_s_16}");return false;}
	  if(json==1){alert("{lang j_m_zxwl_s_17}");location.href="./m.php?name=zxwl";return false;}
     },
     error: function(){
      alert("error");
     }
    });
	
  }
}

</script>

<title>{lang j_zxwl} - {$cfg_site_name}</title></head><body>


 {template 'header'}
 
  <div class="admin">
        <div class="ding">
            <div class="shouye">
                <a href="{url_m.php}" title=""></a>
            </div>
            <div class="lb">
              <div class="weizhi">
                      <b>{lang Location}：</b><a href="{url_m.php}">{lang Member_Center}</a><span>&gt;</span>{lang j_zxwl}
                  </div>
                
               
            </div>
        </div>

{template 'member_left'}

    <div class="records marr_top">

{if empty($action)}
<div class="biao" style="position:relative;">
          <table>
                <tbody><tr>
                    <th width="15" > ID</th>
                   
					<th width="20" class="">{lang j_ys}</th>
                    <th  width="75" class="">{lang j_hp} </th>
                    <th width="25" class="">{lang j_hz}</th>
					<th width="25" class="">{lang j_hzh}</th>
					<th width="25" class="">{lang j_yfgs}</th>			
					<th width="28" class="">{lang time}</th>
					<th width="48" class="">{lang Status}</th>
                </tr>
            </tbody></table>
             
<table width="100%" border="0" cellspacing="0" cellpadding="0">
{loop $dataarray $r}
         <tr style="position:relative;">
                 <td width="15">{$r['id']}</td>
                
				  <td width="24">{$r['wuliu']}</td>   
                 <td width="95">{$r['name']}</td>
                 <td width="25">S${$r['price']}</td>
                 <td width="25">{$r['weight']}KG</td>
                 <td width="25">S${$r['yf']}</td>
                          
				 <td width="28">{date('Y-m-d',$r['time'])}</td>
				  <td width="48">
				  {if $r['status']==0}<b style="color:red;">{lang j_m_zxwl_s_1}</b><br/> 
				  <a href="javascript:pay_j('{$r['id']}','{$r['yf']}');" style="text-decoration:none;padding:2px;background:#FF8729;border: #E25D1B solid 1px;color:#fff;">{lang j_m_zxwl_s_6}</a>
				  {elseif $r['status']==1}<span style="color:green">{lang j_m_zxwl_s_2}</span>
				  {elseif $r['status']==2}<b style="color:green">{lang j_m_zxwl_s_3}</b>
				  {elseif $r['status']==3}<b style="color:green">{lang j_m_zxwl_s_4}</b>
				  {elseif $r['status']==4}{lang j_m_zxwl_s_5}
				  {/if}
				  <br/>
				  <a href="javascript:show('s_{$r['id']}');">{lang j_m_zxwl_s_7}</a>
				  </td>
				  	<div id="s_{$r['id']}" class="detail_s" style="display:none;position:absolute;background: #EEF5FD;
border: #599ED5 solid 1px;padding:10px;right:70px;width:400px;box-shadow: 0px 0px 5px #ccc;">

<b>{lang j_m_zxwl_s_10}:</b> {if $r['type']==0}{lang j_m_zxwl_s_8}
				  {else}{lang j_m_zxwl_s_9}
				  {/if}<br/>
<b>{lang j_s_name}:</b> {$r['uername']}<br/>
<b> {lang j_s_tel}:</b> {$r['tel']}<br/>
<b> {lang j_s_address}:</b> {$r['address']}<br/>
<b>{lang j_mes}:</b> {$r['mes']}
<a href="javascript:hidden('s_{$r['id']}');" style="position:absolute;right:5px;top:5px;">{lang j_m_zxwl_s_11}</a>
</div>
         </tr>
	
{/loop}
</table>
      </div>
	  
{else}
<div class="biao">
<div style=" text-align:center; padding:10px"><h2>{lang sh_out}</h2></div>
    <form id="aspnetForm" action="m.php?name=refundrecord&action=refund&rid={$rid}" method="post" name="Form">
          <table>
            <tr>
              <td > {lang amount_recharge} </td>
              <td widtd="225" align="left" style="text-align:left">&nbsp;<font color="red">{$row['money']}￥</font></td>
            </tr>
            <tr>
              <td > {lang Recharge_time} </td>
              <td align="left" style="text-align:left" >&nbsp;{date('Y-m-d',$row['addtime'])}</td>
            </tr>
            <tr>
              <td > {lang amount_refund_applications} </td>
              <td align="left" style="text-align:left"><input name="money" type="text" id="money" />
                (￥)</td>
            </tr>
               <tr>
                   <td>{lang notes}</td>
                  <td align="left" style="text-align:left" ><textarea name="remark" cols="50" rows="5" id="remark"></textarea></td>
            </tr>
           </table>
		   <div style=" text-align:center"><input type="submit" value="提交申请" />
		   </div>
		   </form>
</div>
{/if}

	  
	  
	  
    </div>

        <div class="yj">
        </div>
    </div>

    
{template 'footer'}

    </form>
</body>
</html>